const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    // 修改了配置地址,就必须yarn serve 重启终端
    proxy: {
      "/api": {
        // target: "http://kumanxuan1.f3322.net:8881/cms",//外网地址
        // .env.VUE_APP_BASE_URL
        target: process.env.VUE_APP_BASE_URL,
        // target: "http://192.168.113.249:8081/cms",
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
});
